import type { IPageQuery } from '@/api/types';

// 查询条件
export type DtuFtpInfoQuery = IPageQuery & {
  deviceId?: string;
  remoteIp?: string;
  channelId?: string;
  status?: number;
};

// 编辑form表单
export type DtuFtpInfoForm = {
  id: number;
  vehicleNumber?: string;
  iccid?: string;
  ledid?: string;
  expireTime?: string;
  simNumber?: string; // 新增字段：SIM卡号
  tesMinDistance?: number; // 新增字段：终点到新起点长度
  // 新增字段 (根据API示例调整字段名)
  capacity?: string; // API示例中为字符串类型
  ttimes?: number; // t_times -> ttimes
  tspeed?: number; // t_speed -> tspeed
  tseTransportDistance?: number; // t_se_transport_distance -> tseTransportDistance
  tseMinDistance?: number; // t_se_min_distance -> tseMinDistance
  ttimeZone?: number; // t_time_zone -> ttimeZone
  tseMinTime?: number; // t_se_min_time -> tseMinTime
  tradarDistance?: number; // t_radar_distance -> tradarDistance
  tradarTime?: number; // t_radar_time -> tradarTime
};

// list或detail返回结构
export type DtuFtpInfoRow = {
  id: number;
  deviceId: string;
  remoteIp: string;
  remotePort: number;
  channelId: string;
  serverChannelId: string;
  connectTime: string;
  disconnectTime: string;
  status: number;
  createTime: string;
  updateTime: string;
  vehicleNumber?: string;
  iccid?: string;
  ledid?: string;
  expireTime?: string;
  simNumber?: string; // 新增字段：SIM卡号
  tesMinDistance?: number; // 新增字段：终点到新起点长度
  // 新增字段 (根据API示例调整字段名)
  capacity?: string; // API示例中为字符串类型
  ttimes?: number; // t_times -> ttimes
  tspeed?: number; // t_speed -> tspeed
  tseTransportDistance?: number; // t_se_transport_distance -> tseTransportDistance
  tseMinDistance?: number; // t_se_min_distance -> tseMinDistance
  ttimeZone?: number; // t_time_zone -> ttimeZone
  tseMinTime?: number; // t_se_min_time -> tseMinTime
  tradarDistance?: number; // t_radar_distance -> tradarDistance
  tradarTime?: number; // t_radar_time -> tradarTime
};